import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
import { DICT_TYPE } from '@/utils/dict'
const { t } = useI18n() // 国际化
// 表单校验
export const rules = reactive({
    rTime: [{ required: true, message: "时间不能为空", trigger: "blur" }],
})
// CrudSchema
const crudSchemas = reactive<CrudSchema[]>([
    {
      label: '编号',
      field: 'id',
      type: 'index',
      form: {
         show: false
      },
      detail: {
         show: false
      }
    },
    {
      label: '时间',
      field: 'rTime',
      form: {
          show: true,
          component: 'DatePicker',
          componentProps: {
              type: 'datetime',
              valueFormat: 'YYYY-MM-DD HH:mm:ss'
          }
      },
      search: {
         show: true,
         component: 'DatePicker',
         componentProps: {
             type: 'datetimerange',
             valueFormat: 'YYYY-MM-DD HH:mm:ss'
         }
      }
    },
    {
      label: '进水泵房液位	',
      field: 'a1',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '备用	',
      field: 'a2',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '备用	',
      field: 'a3',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '备用	',
      field: 'a4',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '进厂pH	',
      field: 'a5',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '进厂COD	',
      field: 'a6',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '进厂SS	',
      field: 'a7',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '出厂水pH	',
      field: 'a8',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '出厂水SS	',
      field: 'a9',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '出厂水氨氮	',
      field: 'a10',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '出厂水COD	',
      field: 'a11',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1脱水机处理量	',
      field: 'a12',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2脱水机处理量	',
      field: 'a13',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3脱水机处理量	',
      field: 'a14',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '鼓风机1号风量	',
      field: 'a15',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '鼓风机2号风量	',
      field: 'a16',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '鼓风机3号风量	',
      field: 'a17',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '鼓风机4号风量	',
      field: 'a18',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#高压电压	',
      field: 'a19',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#低压进线电压	',
      field: 'a20',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '备用	',
      field: 'a21',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#低压进线电压	',
      field: 'a22',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '备用	',
      field: 'a23',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#鼓风机电流	',
      field: 'a24',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#鼓风机电量	',
      field: 'a25',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#鼓风机电流	',
      field: 'a26',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#鼓风机电量	',
      field: 'a27',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#鼓风机电流	',
      field: 'a28',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#鼓风机电量	',
      field: 'a29',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#鼓风机电流	',
      field: 'a30',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#鼓风机电量	',
      field: 'a31',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#进水泵电流	',
      field: 'a32',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#进水泵电量	',
      field: 'a33',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#进水泵电流	',
      field: 'a34',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#进水泵电量	',
      field: 'a35',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#进水泵电流	',
      field: 'a36',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#进水泵电量	',
      field: 'a37',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#进水泵电流	',
      field: 'a38',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#进水泵电量	',
      field: 'a39',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#进水泵电流	',
      field: 'a40',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#进水泵电量	',
      field: 'a41',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '脱水车间电量	',
      field: 'a42',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '紫外柜电量	',
      field: 'a43',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#杂用柜电量	',
      field: 'a44',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#杂用柜电量	',
      field: 'a45',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '进水流量计	',
      field: 'a46',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '泵站液位	',
      field: 'a47',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#低压柜电压	',
      field: 'a48',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#低压柜电量	',
      field: 'a49',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#低压柜电压	',
      field: 'a50',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#低压柜电量	',
      field: 'a51',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '杂电柜电量	',
      field: 'a52',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵电流	',
      field: 'a53',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵电量	',
      field: 'a54',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵时间	',
      field: 'a55',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵电流	',
      field: 'a56',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵电量	',
      field: 'a57',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵时间	',
      field: 'a58',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵电流	',
      field: 'a59',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵电量	',
      field: 'a60',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵时间	',
      field: 'a61',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵电流	',
      field: 'a62',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵电量	',
      field: 'a63',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵时间	',
      field: 'a64',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵电流	',
      field: 'a65',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵电量	',
      field: 'a66',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵时间	',
      field: 'a67',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '泵站液位	',
      field: 'a68',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#低压柜电压	',
      field: 'a69',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#低压柜电量	',
      field: 'a70',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#低压柜电压	',
      field: 'a71',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#低压柜电量	',
      field: 'a72',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '杂电柜电量	',
      field: 'a73',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵电流	',
      field: 'a74',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵电量	',
      field: 'a75',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#提升泵时间	',
      field: 'a76',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵电流	',
      field: 'a77',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵电量	',
      field: 'a78',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#提升泵时间	',
      field: 'a79',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵电流	',
      field: 'a80',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵电量	',
      field: 'a81',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#提升泵时间	',
      field: 'a82',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵电流	',
      field: 'a83',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵电量	',
      field: 'a84',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#提升泵时间	',
      field: 'a85',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵电流	',
      field: 'a86',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵电量	',
      field: 'a87',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#提升泵时间	',
      field: 'a88',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#提升泵电流	',
      field: 'a89',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#提升泵电量	',
      field: 'a90',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#提升泵时间	',
      field: 'a91',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#Cass液位	',
      field: 'a92',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#CassDO	',
      field: 'a93',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#CassMLSS	',
      field: 'a94',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#CassPH	',
      field: 'a95',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#Cass液位	',
      field: 'a96',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#CassDO	',
      field: 'a97',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#CassMLSS	',
      field: 'a98',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#CassPH	',
      field: 'a99',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#Cass液位	',
      field: 'a100',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#CassDO	',
      field: 'a101',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#CassMLSS	',
      field: 'a102',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#CassPH	',
      field: 'a103',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#Cass液位	',
      field: 'a104',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#CassDO	',
      field: 'a105',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#CassMLSS	',
      field: 'a106',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#CassPH	',
      field: 'a107',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#Cass液位	',
      field: 'a108',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#CassDO	',
      field: 'a109',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#CassMLSS	',
      field: 'a110',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '5#CassPH	',
      field: 'a111',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#Cass液位	',
      field: 'a112',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#CassDO	',
      field: 'a113',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#CassMLSS	',
      field: 'a114',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '6#CassPH	',
      field: 'a115',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '7#Cass液位	',
      field: 'a116',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '7#CassDO	',
      field: 'a117',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '7#CassMLSS	',
      field: 'a118',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '7#CassPH	',
      field: 'a119',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '8#Cass液位	',
      field: 'a120',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '8#CassDO	',
      field: 'a121',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '8#CassMLSS	',
      field: 'a122',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '8#CassPH	',
      field: 'a123',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#储泥池液位	',
      field: 'a124',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#储泥池液位	',
      field: 'a125',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#脱泥机转速	',
      field: 'a126',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#脱泥机差转速	',
      field: 'a127',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '絮凝剂流量	',
      field: 'a128',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '污泥流量	',
      field: 'a129',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '辅机转速	',
      field: 'a130',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '扭矩	',
      field: 'a131',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#脱泥机转速	',
      field: 'a132',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#脱泥机差转速	',
      field: 'a133',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '絮凝剂流量	',
      field: 'a134',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '污泥流量	',
      field: 'a135',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '螺旋温度	',
      field: 'a136',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '扭矩	',
      field: 'a137',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#脱泥机转速	',
      field: 'a138',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#脱泥机差转速	',
      field: 'a139',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '絮凝剂流量	',
      field: 'a140',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '污泥流量	',
      field: 'a141',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '螺旋温度	',
      field: 'a142',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '扭矩	',
      field: 'a143',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '出厂水总磷',
      field: 'a144',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '进厂水COD	',
      field: 'a145',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '1#鼓风量	',
      field: 'a146',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '2#鼓风量	',
      field: 'a147',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '3#鼓风量	',
      field: 'a148',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '4#鼓风量	',
      field: 'a149',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
      label: '除臭电量	',
      field: 'a150',
      form: {
          show: true,
      },
      search: {
         show: true
      }
    },
    {
        label: t('table.action'),
        field: 'action',
        width: '240px',
        form: {
            show: false
        },
        detail: {
            show: false
        }
    }
])

export const { allSchemas } = useCrudSchemas(crudSchemas)